BusinessmanBonusPanel = function(){
	var this_panel = this;
	
	this.listeners = {
		show : function(){
			this_panel.getTopToolbar().init();
		}
	};
	BusinessmanBonusPanel.superclass.constructor.call(this, {
		title : "奖金发放合计(业务经理)",
		loadMask : true,
		stripeRows : true,
		enableHdMenu : false,
		sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
		colModel: new Ext.grid.ColumnModel({
			defaults : {
				align : "center",
				sortable : true
			},
			columns:[{header : "销售人员",dataIndex : "person", align : "left"},
			         {header : "销售金额",dataIndex : "sellSum"},
			         {header : "回款金额",dataIndex : "backSum"},
			         {header : "金额合计",dataIndex : "sellbacksum"},
			         {header : "平均额",dataIndex : "sellbacksumhalf"},
			         {header : "销售奖",dataIndex : "sellAword",xtype:"numbercolumn", format:"0"},
			         {header : "回款奖",dataIndex : "backAword",xtype:"numbercolumn", format:"0"},
			         {header : "奖金合计",dataIndex : "sellbackAword",xtype:"numbercolumn", format:"0"},
			         {header : "平均奖金",dataIndex : "sellbackAwordhalf",xtype:"numbercolumn", format:"0"},
			         {header : "基数",dataIndex : "base"},
			         {header : "最终奖金",dataIndex : "resutlBonus",xtype:"numbercolumn", format:"0"}
			        ]
		}),
		viewConfig: {
	        forceFit: true
		},
		store :new Ext.data.JsonStore({
			fields : ['person','sellSum','backSum','sellbacksum','sellbacksumhalf','sellAword','backAword','sellbackAword','sellbackAwordhalf','base','resutlBonus']
		}),
		tbar : new SeasonToolbar({
			panel : this_panel,
			url : "item/bonusBySeason.action",
			type : "busi"
		})
	});
};
Ext.extend(BusinessmanBonusPanel, Ext.grid.GridPanel);
var businessmanBonusPanel = new BusinessmanBonusPanel();